import 'package:json_annotation/json_annotation.dart';

part 'logistics.g.dart';

@JsonSerializable()
class Logistics extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'content')
  String content;

  @JsonKey(name: 'created_at')
  String createdAt;

  Logistics(
    this.id,
    this.content,
    this.createdAt,
  );

  factory Logistics.fromJson(Map<String, dynamic> srcJson) =>
      _$LogisticsFromJson(srcJson);
}
